package com.yzt.zhuju.network.entity.mine.wallet;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

/**
 * author : bob
 * date   : 2022/11/30
 * desc   :
 */
public class WalletDetialList implements Serializable, MultiItemEntity {

//    public static final int TYPE_HEADER = 1;
    public static final int TYPE_CONTENT = 2;

    private int itemType;
    private String id;
    private String recordDay;
    private String recordTime;
    private String recordUid;
    private String targetUid;
    private String targetUsername;
    private String type; // payment   income
    private String item;
    private String amount;
    private String message;

    public int getItemType() {
        return itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRecordDay() {
        return recordDay;
    }

    public void setRecordDay(String recordDay) {
        this.recordDay = recordDay;
    }

    public String getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(String recordTime) {
        this.recordTime = recordTime;
    }

    public String getRecordUid() {
        return recordUid;
    }

    public void setRecordUid(String recordUid) {
        this.recordUid = recordUid;
    }

    public String getTargetUid() {
        return targetUid;
    }

    public void setTargetUid(String targetUid) {
        this.targetUid = targetUid;
    }

    public String getTargetUsername() {
        return targetUsername;
    }

    public void setTargetUsername(String targetUsername) {
        this.targetUsername = targetUsername;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static WalletDetialList copy(WalletDetialList detialList, int type) {
        WalletDetialList detial = new WalletDetialList();
        detial.setItemType(type);
        detial.setRecordDay(detialList.getRecordDay());
        detial.setMessage(detialList.getMessage());
        if (type == TYPE_CONTENT) {
            detial.setId(detialList.getId());
            detial.setRecordDay(detialList.getRecordDay());
            detial.setRecordTime(detialList.getRecordTime());
            detial.setRecordUid(detialList.getRecordUid());
            detial.setTargetUid(detialList.getTargetUid());
            detial.setTargetUsername(detialList.getTargetUsername());
            detial.setType(detialList.getType());
            detial.setItem(detialList.getItem());
            detial.setAmount(detialList.getAmount());
        }
        return detial;
    }
}
